<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	xmlns:ctg="http://www.crotouristguide.com/taglib">
<body>
<ui:composition template="/templates/layout/columns_1.xhtml">
	<ui:define name="column1">
		<s:div styleClass="title"><h1><h:outputText value="#{messages['title.places']}" /></h1> 
			<h:outputText value="#{messages['subtitle.places']}" />
		</s:div>
		<ui:repeat value="#{firstMjestaLetters}" var="letter">
			<h:outputLink
				value="#{application.contextPath}/guides/mjesta/list.seam"
				rendered="#{letter!=param.letter}">
				<f:param name="letter" value="#{letter}" />
				<f:param name="l" value="#{currentLang}" />
				<h:outputText value="#{letter}" />
			</h:outputLink>
			<h:outputText value="#{letter}" styleClass="active-letter"
				rendered="#{letter==param.letter}" />
			<ctg:nbsp />
		</ui:repeat>
		<ui:include src="list_include.xhtml">
			<ui:param name="mjesta" value="#{mjesta}" />
		</ui:include>
	</ui:define>
	<ui:define name="column2">
		<s:cache key="mjesta_home_column2_#{currentLang}"
			region="pageFragments">
			<ctg:mjestoSpotlight imgWidth="180" imgHeight="130" />
			<ctg:topMjesta />
		</s:cache>
	</ui:define>
	<ui:define name="tasks">
		<ctg:tasks review="false" />
	</ui:define>
</ui:composition>
</body>
</html>
